home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - DOS Part 1
/
DOS002.dsk
/
DISPLAY INTEGER AVAIL. MEM.int
< prev
next >
Wrap
Text File
|
2012-02-16
|
2KB
|
67 lines
10 REM
11 REM -------------------------
12 REM ! AVAILABLE MEMORY !
13 REM -------------------------
14 REM ! FROM PAGE 4 OF THE !
15 REM ! 10/78 ISSUE OF THE !
16 REM ! SOUTHEASTERN !
17 REM ! NEWSLETTER !
18 REM -------------------------
19 REM ! PROGRAM IDEA !
20 REM ! SUGGESTED BY !
21 REM ! G. MCCLELLAND !
22 REM -------------------------
23 REM ! MODIFIED BY !
24 REM ! T N TAYLOR !
25 REM ! VERSION 2 !
26 REM ! 31 DEC 78 !
27 REM -------------------------
28 REM
50 CALL -936
52 PRINT :PRINT :PRINT :PRINT
55 LIST 11,18
60 FOR I=1 TO 2000:NEXT I
65 CALL -936
66 PRINT :PRINT :PRINT :PRINT
70 LIST 18,27
75 FOR I=1 TO 2000:NEXT I
80 CALL -936
100 PRINT :PRINT
103 PRINT "THIS PROGRAM DOES NOT WORK WITH A MEMORYSIZE LARGER THAN 32K DUE TO >32767 ERROR"
104 PRINT
105 INPUT "WHAT IS THE K SIZE OF YOUR APPLE MEMORY",K
108 PRINT :PRINT
110 REM *** CM = END OF VARIABLE TABLE
111 REM *** HM = HIGH MEMORY
112 REM *** LM = LOW MEMORY
113 REM *** PP = BEGINNING OF PROGRAM
114 REM *** VT = SIZE OF VARIABLE TABLE
115 REM *** BP = SIZE OF BASIC PROGRAM
119 BP=0:CM=0:HM=0:LM=0:PP=0:VT=0:F=0:T=0
120 PP= PEEK (202)+ PEEK (203)*256
125 CM= PEEK (204)+ PEEK (205)*256
126 LM= PEEK (74)+ PEEK (75)*256
127 HM= PEEK (76)+ PEEK (77)*256
130 BP=HM-PP
135 VT=CM-LM
140 F=PP-CM
145 IF K>32 THEN 146:T=(K-2)*1024
146 TM=K
147 SUM=LM+VT+F+BP
148 DIFF=HM-SUM
150 PRINT "LOW MEMORY ";LM
151 PRINT "SIZE OF VARIABLE TABLE ";VT
152 PRINT "FREE BYTES ";F
155 PRINT "SIZE OF BASIC PROGRAM ";BP
160 PRINT " -------"
165 PRINT "HIGH MEMORY BY ADDING ";SUM
167 PRINT "ACTUAL HIGH MEMORY ";HM
169 PRINT " -------"
171 PRINT "DIFFERENCE ";DIFF
173 PRINT
174 PRINT "BYTES USED ";T-F
176 PRINT
177 PRINT "TOTAL MEMORY ";TM
200 END
9999 REM THIS PROGRAM CAME TO THE A.C.E.S. FROM NEWTON'S TREE